<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<div class="right">
       <div class="location">
           <strong>你现在所在的位置是:</strong>
           <span>考勤管理页面</span>
       </div>
       <div class="search">
       <form method="get" action="${pageContext.request.contextPath }/check/checkslist">
        <span>员工姓名：</span>
		
			<input type="text" name="empNames" value="${empNames}">
			 <input	value="查 询" type="submit" id="searchbutton">
			 <a href="${pageContext.request.contextPath }/check/addcheck">添加考勤人</a>
		</form>
       </div>
       <!--账单表格 样式和供应商公用-->
      <table class="providerTable" cellpadding="0" cellspacing="0">
          <tr class="firstTr">
              <th width="10%">考勤日期</th>
              <th width="20%">员工姓名</th>
              <th width="10%">上班时间</th>
              <th width="10%">下班时间</th>
              <th width="10%">是否请假</th>
              <th width="10%">请假事由</th>
              <th width="10%">考勤奖</th>
              <th width="30%">操作</th>
          </tr>
          <c:forEach var="chk" items="${listcheck}" varStatus="status">
				<tr>
					<td>
					<span><fmt:formatDate value="${chk.check_date }" pattern="yyyy-MM-dd" /></span>
					</td>
					<td>
					<span>${chk.empNames }</span>
					</td>
					<td>
					<span><fmt:formatDate value="${chk.work_hour}" pattern="HH:dd" /></span>
					</td>
					<td>
					<span><fmt:formatDate value="${chk.close_hour}" pattern="HH:dd" /></span>
					</td>
					<td>
					<span>${chk.reason}</span>
					<td>
					<span>${chk.check_reason}</span>
					</td>
					<td>
					<span>${chk.kaoqinPay}</span>
					</td>
					
					
					<td>
					<span><a class="viewBill" href="javascript:;" check_id=${chk.check_id } ><img src="${pageContext.request.contextPath }/statics/images/read.png" alt="查看" title="查看"/></a></span>
					<span><a class="modifyBill" href="javascript:;" check_id=${chk.check_id }><img src="${pageContext.request.contextPath }/statics/images/xiugai.png" alt="修改" title="修改"/></a></span>
					<span><a class="deleteBill" href="javascript:;" check_id=${chk.check_id } billcc=${bill.rec_name }><img src="${pageContext.request.contextPath }/statics/images/schu.png" alt="删除" title="删除"/></a></span>
					</td>
				</tr>
			</c:forEach>
      </table>
     <%--  <div class="page-bar">
			<p>
				当前页:${pageIndex}/${count}
				<c:if test="${pageIndex > 1}">
					<a href="billlist?pageIndex=1">首页</a>
					<a href="billlist?pageIndex=${pageIndex-1}">上一页</a>
				</c:if>
				<c:if test="${pageIndex < count}">
					<a href="billlist?pageIndex=${pageIndex+1}">下一页</a>
					<a href="billlist?pageIndex=${count}">末页</a>
				</c:if>
			</p>
		</div> --%>
  </div>
</section>

<!--点击删除按钮后弹出的页面-->
<div class="zhezhao"></div>
<div class="remove" id="removeBi">
    <div class="removerChid">
        <h2>提示</h2>
        <div class="removeMain">
            <p>你确定要删除该考勤人员信息吗？</p>
            <a href="#" id="yes">确定</a>
            <a href="#" id="no">取消</a>
        </div>
    </div>
</div>
</section>
<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/billlist.js"></script>